<!--
  ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  ~
  ~ Copyright (c) 2008-2011, Salzburg Research. All rights reserved.
  ~
  ~ Redistribution and use in source and binary forms, with or without
  ~ modification, are permitted provided that the following conditions are met:
  ~ - Redistributions of source code must retain the above copyright notice,
  ~ this list of conditions and the following disclaimer.
  ~ - Redistributions in binary form must reproduce the above copyright notice,
  ~ this list of conditions and the following disclaimer in the documentation
  ~ and/or other materials provided with the distribution.
  ~ - Neither the name of the KiWi Project nor the names of its contributors
  ~ may be used to endorse or promote products derived from this software
  ~ without specific prior written permission.
  ~
  ~ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  ~ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  ~ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  ~ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  ~ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  ~ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  ~ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  ~ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  ~ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  ~ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  ~ POSSIBILITY OF SUCH DAMAGE.
  ~
  ~ Contributor(s):
  ~ Stefan
  ~
  ~ File Info:
  ~ User: Stefan
  ~ Date: 2011/02/09
  ~ Time: 10:08
  ~
  ~ Project: KiWi2, KiWi2 module
  -->

<!-- load systemconfig widget in this div -->


<table width="100%" border="0" class="widget-content ui-widget-content">
  <tr>
    <td><div id="spacesconfig">Loading...</div></td>
    <td><form id="form1" name="form1" method="post" action="">
      <p>
        <label for="titleForm"></label>
        Titel:
        <input type="text" name="titleForm" id="titelForm" value=""/>
      </p>
      <p>Type:
        <label for="kindsForm"></label>
        <select name="kindsForm" id="kindsForm">
            <option value='categoryspace'>Categoryspace</option>
            <option value='ontologyspace'>Ontologyspace</option>
            <option value='contentspace'>Contentspace</option>
            <option value='userspace'>Userspace</option>
            <option value='systemspace'>Systemspace</option>
        </select>
      </p>
      <p>Author:<div id="authorForm"></div></p>
      <p>CreationTime:<div id="creationtimeForm"></div></p>
      <p>
        <input type="button" class="small-button" name="saveForm" id="saveForm" value="Save" />
      </p>
    </form></td>
  </tr>
  <tr>
    <td><form id="form2" name="form2" method="post" action="">
      <input type="button" name="spaceAddForm" id="spaceAddForm" value="Add Space" class="small-button" />
      <input type="button" name="categoryAddForm" id="categoryAddForm" class="small-button" value="Add Category" />
      <input type="button" name="removeForm" id="removeForm" class="small-button" value="Remove Space" />
    </form></td>
    <td>&nbsp;</td>
  </tr>
</table>
<script type="text/javascript">
        $.getScript('tabs/spaces/widgets/spacesconfig.js', function() {
            $('#spacesconfig').spacesconfig({lang:lang});
        });

</script>
